home *** CD-ROM | disk | FTP | other *** search
- function PROT_Reporter() {
- this.debugZone = "reporter";
- this.reportURL = PROT_globalStore.getActionReportURL();
- this.prefs_ = new G_Preferences();
- }
- PROT_Reporter.prototype.report = function(subject, data) {
- if (!this.prefs_.getPref(PROT_globalStore.getSendUserReportsPrefName(),
- false))
- return;
- var url = this.reportURL + "evts=" + encodeURIComponent(subject) +
- "&evtd=" + encodeURIComponent(data);
- G_Debug(this, "Sending report: " + url);
- (new PROT_XMLFetcher(true /* strip cookies */)).get(url, null /* no cb */);
- }
-